package epam.marchenko.library.repository;

import java.util.List;

import epam.marchenko.library.domain.User;

public interface UserRepository {
	User findById(int id);
	User findByLogin(String login);
	User find(User user);
	Long countUsers();
	List<User> findAll(); 
	List<User>searchByName(String searchedName);
	List<User>findPart(int pageNum, int perPage);
	void create(User user);
	void deleteById(int id);
	void delete(User user);
	void update(User user);
}
